﻿<UserControl 
    x:Class="ibba.src.noriskbo.PainelStatusLM"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"    
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    xmlns:slc="clr-namespace:ibba.src.sl.componentes;assembly=ibba.src.sl.componentes"
    xmlns:vm="clr-namespace:ibba.src.noriskbo.ViewModels">

    <UserControl.Resources>
        <vm:PainelStatusLMViewModel x:Key="viewModel" />
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="White" DataContext="{Binding Source={StaticResource viewModel}}">
        <slc:CustomContentPanel Name="panelConsultas" HeaderPadding="10,5"
                                BackgroundHeader="{StaticResource SmokeGradientBrush}" BorderBrush="#FFD1D1D1" 
                                Header="{Binding TitleView}" 
                                HorizontalAlignment="Left" VerticalAlignment="Top"
                                HorizontalContentAlignment="Center" VerticalContentAlignment="Center" >

            <toolkit:BusyIndicator IsBusy="{Binding IsBusy}" BusyContent="Carregando...">

                <Grid Margin="0,0,0,0" Width="600">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="100"/>
                        <RowDefinition Height="100"/>
                    </Grid.RowDefinitions>

                    <slc:CustomButtonBar Name="btnStatusRA" Content="Rascunhos" Image="{StaticResource BotaoRascunho}" 
                                         ImageSizeNormal="54" ImageSizeOver="64" Height="90" VerticalAlignment="Top" 
                                         Grid.Row="0" Grid.Column="0" 
                                         IsEnabled="{Binding IsBusy, Converter={StaticResource NotBooleanConverter}}"
                                         Click="Botao_Click"/>
                    <sdk:Label Name="lblQtdStatusRA" Content="{Binding QuantidadeStatus.QuantidadeRA}" Style="{StaticResource LegendBlue}" Grid.Row="0" Grid.Column="0" Margin="65,20,0,0" />

                    <slc:CustomButtonBar Name="btnStatusEA" Content="Em Aprovação" Image="{StaticResource BotaoEmAprovacao}" 
                                         ImageSizeNormal="54" ImageSizeOver="64" Height="90" VerticalAlignment="Top" 
                                         Grid.Row="0" Grid.Column="1" 
                                         IsEnabled="{Binding IsBusy, Converter={StaticResource NotBooleanConverter}}"
                                         Click="Botao_Click" />
                    <sdk:Label Name="lblQtdStatusEA" Content="{Binding QuantidadeStatus.QuantidadeEA}" Style="{StaticResource LegendBlue}" Grid.Row="0" Grid.Column="1" Margin="65,20,0,0" />

                    <slc:CustomButtonBar Name="btnStatusEE" Content="Em Exclusão" Image="{StaticResource BotaoEmExclusao}" 
                                         ImageSizeNormal="54" ImageSizeOver="64" Height="90" VerticalAlignment="Top"
                                         Grid.Row="0" Grid.Column="3" 
                                         IsEnabled="{Binding IsBusy, Converter={StaticResource NotBooleanConverter}}"
                                         Click="Botao_Click" />
                    <sdk:Label Name="lblQtdStatusEE" Content="{Binding QuantidadeStatus.QuantidadeEE}" Style="{StaticResource LegendBlue}" Grid.Row="0" Grid.Column="3" Margin="65,20,0,0" />

                    <slc:CustomButtonBar Name="btnStatusAP" Content="Aprovados" Image="{StaticResource BotaoAprovar}" 
                                         ImageSizeNormal="54" ImageSizeOver="64" Height="90" VerticalAlignment="Top" 
                                         Grid.Row="0" Grid.Column="2" 
                                         IsEnabled="{Binding IsBusy, Converter={StaticResource NotBooleanConverter}}"
                                         Click="Botao_Click" />
                    <sdk:Label Name="lblQtdStatusAP" Content="{Binding QuantidadeStatus.QuantidadeAP}" Style="{StaticResource LegendBlue}" Grid.Row="0" Grid.Column="2" Margin="65,20,0,0" />

                    <slc:CustomButtonBar Name="btnStatusBO" Content="Baixas Operacionais" Image="{StaticResource BotaoBaixaOperacional}" 
                                         ImageSizeNormal="54" ImageSizeOver="64" Height="90" VerticalAlignment="Top" 
                                         Grid.Row="1" Grid.Column="2" 
                                         IsEnabled="{Binding IsBusy, Converter={StaticResource NotBooleanConverter}}"
                                         Click="Botao_Click" />
                    <sdk:Label Name="lblQtdStatusBO" Content="{Binding QuantidadeStatus.QuantidadeBO}" Style="{StaticResource LegendBlue}" Grid.Row="1" Grid.Column="2" Margin="65,20,0,0" />

                    <slc:CustomButtonBar Name="btnStatusBV" Content="Baixas no Vencimento" Image="{StaticResource BotaoBaixaVencimento}" 
                                         ImageSizeNormal="54" ImageSizeOver="64" Height="90" VerticalAlignment="Top" 
                                         Grid.Row="1" Grid.Column="0" 
                                         IsEnabled="{Binding IsBusy, Converter={StaticResource NotBooleanConverter}}"
                                         Click="Botao_Click" />
                    <sdk:Label Name="lblQtdStatusBV" Content="{Binding QuantidadeStatus.QuantidadeBV}" Style="{StaticResource LegendBlue}" Grid.Row="1" Grid.Column="0" Margin="65,20,0,0" />

                    <slc:CustomButtonBar Name="btnStatusEB" Content="Em Baixa Operacional" Image="{StaticResource BotaoEmBaixaOperacional}" 
                                         ImageSizeNormal="54" ImageSizeOver="64" Height="90" VerticalAlignment="Top"
                                         Grid.Row="1" Grid.Column="1" 
                                         IsEnabled="{Binding IsBusy, Converter={StaticResource NotBooleanConverter}}"
                                         Click="Botao_Click" />
                    <sdk:Label Name="lblQtdStatusEB" Content="{Binding QuantidadeStatus.QuantidadeEB}" Style="{StaticResource LegendBlue}" Grid.Row="1" Grid.Column="1" Margin="65,20,0,0" />


                    <slc:CustomButtonBar Name="btnStatusBE" Content="Em Exclusão Baixa Oper." Image="{StaticResource BotaoEmExclusaoBO}" 
                                         ImageSizeNormal="54" ImageSizeOver="64" Height="90" VerticalAlignment="Top"
                                         Grid.Row="1" Grid.Column="3" 
                                         IsEnabled="{Binding IsBusy, Converter={StaticResource NotBooleanConverter}}"
                                         Click="Botao_Click" />
                    <sdk:Label Name="lblQtdStatusBE" Content="{Binding QuantidadeStatus.QuantidadeBE}" Style="{StaticResource LegendBlue}" Grid.Row="1" Grid.Column="3" Margin="65,20,0,0" />


                    <slc:CustomButtonBar Name="btnRefresh" Content="" Image="{StaticResource IconeRefresh}"
                                         ImageSizeNormal="20" ImageSizeOver="24" Grid.Column="3" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0,-25,-12,0"
                                         IsEnabled="{Binding IsBusy, Converter={StaticResource NotBooleanConverter}}"  
                                         ToolTipService.ToolTip="Atualizar quantidade de itens"
                                         Click="Botao_Click" />

                    

                </Grid>

            </toolkit:BusyIndicator>
        </slc:CustomContentPanel>

    </Grid>
</UserControl>